﻿<%@ Page Language="C#" MasterPageFile="~/web.master" AutoEventWireup="true" CodeBehind="audit_trail_old.aspx.cs" Inherits="Shuba.Web.admin.audit_trail_old"%>
<%@ Register Assembly="Shuba.Framework" Namespace="Shuba.Framework" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    		<table class="text" border="0" width="100%" cellspacing="0" cellpadding="2">
				<tr>
					<td class="text bg_content" bgcolor="#FFFFFF" align="center"><p>&nbsp;</p>
			<table class="black" border="0" width="95%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="title_back">
					    <table class="text" border="0" width="100%" cellspacing="0" cellpadding="0">
					    <tr>
					    <td class="title_back2" width="2%">&nbsp;</td>
					    <td class="title_back2 title_white" width="38%"><asp:Label ID="LabelTitle" runat="server" Text="Label"></asp:Label></td>
					    <td><span class="title_right"></span></td>
					    </tr>
					    </table>
					</td>
										<td class="title_back" align="right"><br>&nbsp;</td>
				</tr>
				<tr>
					<td class="border_left bg_subtitle_white"><img src="../images/trans.gif" width="5" height="5" border="0" /></td>
					<td class="border_right bg_subtitle" align="right" valign="middle">
                        Period&nbsp;<asp:DropDownList ID="ddlTable" runat="server" CssClass="text"></asp:DropDownList>
                        &nbsp;<cc:DatePicker ID="txtStartDate" imgDirectory="../images/" ControlCssClass="text" CssClass="text" runat="server"></cc:DatePicker>&nbsp;to&nbsp;<cc:DatePicker
                            ID="txtToDate" imgDirectory="../images/" ControlCssClass="text" CssClass="text" runat="server"></cc:DatePicker>
                        <asp:Button ID="btnSearch" CssClass="buttonsmall" runat="server" Text="Search" 
                            onclick="btnSearch_Click" />&nbsp;
                        <asp:Button ID="btnExcel" CssClass="button" runat="server" 
                            Text="Export to Excel" onclick="btnExcel_Click" />
                            &nbsp;
                    </td>
				</tr>
				<tr>
				<td class="border" colspan="2">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <cc:SHUBAGrid ID="gvLog" runat="server" AutoGenerateColumns="False" Width="100%"
                                AllowPaging="true" PageSize="20" OnPageIndexChanging="gvLog_PageIndexChanging"
                                 AllowSorting="True" OnSorting="gvLog_OnSorting" OnRowDataBound="gvLog_OnRowDataBound">
                                <Columns>
                                    <asp:BoundField DataField="ACT_TYPE" HeaderText="ACTION" SortExpression="ACT_TYPE" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="120px"></asp:BoundField>
                                    <asp:BoundField DataField="TABLE_NAME" HeaderText="TABLE" SortExpression="TABLE_NAME" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                    <asp:BoundField DataField="PRIMARY_KEY" HeaderText="KEY" SortExpression="PRIMARY_KEY" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                    <asp:BoundField DataField="FIELD_NAME" HeaderText="FIELD NAME" SortExpression="FIELD_NAME" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                    <asp:BoundField DataField="OLD_VALUE" HeaderText="OLD VALUE" SortExpression="OLD_VALUE" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                    <asp:BoundField DataField="NEW_VALUE" HeaderText="NEW VALUE" SortExpression="NEW_VALUE" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Left"></asp:BoundField>
                                    <asp:BoundField DataField="UPDATE_BY" HeaderText="USER" SortExpression="UPDATE_BY" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField DataField="UPDATE_DATE" HeaderText="DATE" SortExpression="UPDATE_DATE" ItemStyle-CssClass="text" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:dd MMM yyyy hh:mm:ss tt}"></asp:BoundField>
                                </Columns>
                                <PagerSettings Mode="Numeric" Visible="true" />
                                <EmptyDataTemplate>
                                    <table class="text" width=100% cellpadding=0 cellspacing=0><tr><td class="bg_grid2" align=center>NO RECORD FOUND</td></tr></table>
                                </EmptyDataTemplate>
                            </cc:SHUBAGrid>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="gvLog" EventName="PageIndexChanging"/>
                            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"/>
                        </Triggers>
                    </asp:UpdatePanel>
				</td></tr>
			</table>
					<p>&nbsp;</p></td>
				</tr>
</table>

</asp:Content>
